package cn.xuqiudong.rpc.protocol.netty.model;

import java.io.Serializable;

/**
 * 描述: netty通信数据格式
 * @author Vic.xu
 * @date 2022-02-21 10:36
 */
public class NettyProtocolData<T> implements Serializable {

    private static final long serialVersionUID = -5251652507767162726L;

    private NettyHeader header;

    private T body;

    public <T> NettyProtocolData() {
    }

    public NettyProtocolData(NettyHeader header, T body) {
        this.header = header;
        this.body = body;
    }

    public NettyHeader getHeader() {
        return header;
    }

    public void setHeader(NettyHeader header) {
        this.header = header;
    }

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }
}
